/**
 * KPI
 */
import axios from "./http"; // 导入http中创建的axios实例
import GLOBAL from "./global_variable";

const handleKPI = {
  // 获取kpi列表
  getKPIlist: () => {
    return axios.post(GLOBAL.BASE_URL_REQUEST + "/KPICate/FindListByTree", {});
  },
  // 通过二级KPI查询名下存在的三级KPI
  getThirdKPIlist: (cid) => {
    return axios.post(GLOBAL.BASE_URL_REQUEST + "/KPIInfo/FindListByCid", {
      cid,
      pagedDto: {
        pageSize: 9999,
        pageIndex: 1,
        orderBy: "",
      },
    });
  },
};

export default handleKPI;
